<%@ page language="java" contentType="text/html; charset=utf-8"
		 pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Insert title here</title>
	<link rel="stylesheet" href="./css/xiugai.css">
	<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="./js/xiugai.js"></script>
</head>

<script>
    function validate() {
        var pwd1 = document.getElementById("pwd1").value;
        var pwd2 = document.getElementById("pwd2").value;
        if(pwd1 == pwd2) {
            document.getElementById("tishi").innerHTML="<font color='green'>两次密码相同</font>";
            document.getElementById("submit").disabled = false;
        }
        else {
            document.getElementById("tishi").innerHTML="<font color='red'>两次密码不相同</font>";
            document.getElementById("submit").disabled = true;
        }
    }

</script>
<body >

<div class="contrainer">
	<div class="wrap">
		<div class="header">
			<p>修改密码</p>
		</div>
		<div class="content" style="height:390px;">
			<form action="modifyPassword.do" method="post"> 
				<div class="jmima">
					<div class="tip">旧密码</div>
					<input type="password" class="omima" name="oldpassword">
				</div>
				<div class="xmima">
					<div class="x1">
						<div class="tip1">新密码</div>
						<input type="password" class="nmima" name="newpassword">
					</div>
					<div class="x2">
						<div class="tip2">重复新密码</div>
						<input type="password" class="rnmima" name="passwd">
					</div>
					<input type="hidden" name="originalpassword" value="${pwd}" >
					<input type="hidden" name="name" value="${name}" >
					<input type="submit" class="xig">
				</div>
			</form>
		</div>
	</div>
</div>
</body>
</html>

